package com.alex.wechat.component.account.service;

import java.io.Serializable;

import org.jeecgframework.core.common.service.CommonService;

import com.alex.wechat.component.account.entity.WxComponentAccountEntity;

public interface WxComponentAccountServiceI extends CommonService {

  public void delete(WxComponentAccountEntity entity) throws Exception;

  public Serializable save(WxComponentAccountEntity entity) throws Exception;

  public void saveOrUpdate(WxComponentAccountEntity entity) throws Exception;

  /**
   * 通过AppID，获取系统账号信息
   * 
   * @param appId
   * @return
   */
  public WxComponentAccountEntity getAccountByAppId(String appId);

  /**
   * 取得当前登录用户的活动第三方开发账户。
   * 
   * @return 取当前活动的账户或者有且仅有的一个账户，其它都返回null
   */
  public WxComponentAccountEntity getAccountByLogin();

}
